package com.le.tester.javaThink.fifth.chapter18_Str;

/**
 * createTime：2021/8/9 13:37
 * description：输出format
 */
public class SimpleFormat {
    public static void main(String[] args) {
        int x = 5;
        double y = 5.332542;
        System.out.println("Row 1:[" + x + " " + y + "]");

        System.out.format("Row 1:[%d %f]%n", x, y);

        System.out.printf("Row 1:[%d %f]%n", x, y);


    }
}
